< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03120312.xhp

(section: converttourl) (bookmark: bm_id3152801)
ConvertToURL function

ConvertToURL 関数

ConvertToURL Function [Runtime]
ConvertToURL 関数 [実行時](hd_id3152801.1)

Converts a system file name to a file URL.
システムファイル名をファイル URL へ変換します。(par_id3148538.2)

(/section: converttourl)

Syntax:
構文:(hd_id3150669.3)

ConvertToURL(filename)
ConvertToURL(filename)(par_id3154285.4)

Return value:
戻り値:(hd_id3150984.5)

String
文字列(par_id3147530.6)

Parameters:
パラメータ:(hd_id3148550.7)

Filename: A file name as string.
Filename: ファイル名を示す文字列。(par_id3148947.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3153361.9)

systemFile$ = "c:\folder\mytext.txt"
systemFile$ = "c:\folder\mytext.txt"(par_id3150792.10)

url$ = ConvertToURL( systemFile$ )
url$ = ConvertToURL( systemFile$ )(par_id3154365.11)

print url$
print url$(par_id3151042.12)

systemFileAgain$ = ConvertFromURL( url$ )
systemFileAgain$ = ConvertFromURL( url$ )(par_id3154909.13)

print systemFileAgain$
print systemFileAgain$(par_id3144762.14)


< Prev / Next >